//
//  OptionTableViewCell.m
//  Beauty
//
//  Created by Snow on 16/9/8.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "OptionTableViewCell.h"
#import "GXMacro.h"
@implementation OptionTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        _labelOfOption = [[UILabel alloc] init];
        [self.contentView addSubview:_labelOfOption];
        [_image mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.contentView.mas_right).mas_equalTo(-10);
            make.top.mas_equalTo(self.contentView.mas_top).mas_equalTo(10);
            make.width.mas_equalTo(self.contentView.mas_width).multipliedBy(0.1);
            make.bottom.mas_equalTo(self.contentView.mas_bottom).mas_equalTo(-10);
        }];
        [_labelOfOption mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).mas_equalTo(10);
            make.top.mas_equalTo(self.contentView.mas_top);
            make.right.mas_equalTo(_image.mas_left);
            make.bottom.mas_equalTo(self.contentView.mas_bottom);
        }];
        _image.image = [UIImage imageNamed:@"LookMore"];
    }
    return self;
}

@end
